import { defineStore } from 'pinia'

const useStore = defineStore('tabbar', {
    // arrow function recommended for full type inference
    state: () => {
        // all these properties will have their type inferred automatically
        return {
            peopleInfo: null,
            dealerInfo: null
        }
    },
    actions: {
        setPeopleInfo(newValue: any) {
            console.log(newValue, "====store this")
            this.peopleInfo = newValue
        },
        setDealerInfo(newValue: any) {
            this.dealerInfo = newValue
        },
    }
})

export default useStore
